export default class Admin extends Mod {
  @Api({
    token: true
  })
  public async getQiniuToken() {
    const accessKey = 'qe9uXs7Mc-iHgJh7MBH1Y_FkBA9lJG6zRs1fgG2z';
    const secretKey = '6PuYUNPUnRZAkH2ZhzVw5O1PFuChYbY4ZU2Ydxl5';
    const bucket = 'mokyun';
    const token = getQiniuToken({ accessKey, secretKey, bucket });
    return { uptoken: token, domain: 'https://cdn1-open.mokyun.com' };
  }
}
